import { Router } from 'express';
import * as policyAppController from './appController';

const router = Router();

/**
 * @route   GET /list
 * @desc    获取政策新闻列表（通过type参数控制类型）
 * @access  公开
 */
router.get('/list', policyAppController.getPolicyNews);


/**
 * @route   GET /detail/:id
 * @desc    获取政策新闻详情
 * @access  公开
 */
router.get('/detail/:id', policyAppController.getPolicyNewsDetailApp);

export default router; 